﻿package toolbar {
	import flash.events.MouseEvent;
	import toolbar.icon.Selected;
	import util.EventParser;
	
	public class NormalButton extends IconButton {
		
		public function NormalButton(intro:String, bgWidth:int = 22):void {
			super(intro, bgWidth);
			addEventListener(MouseEvent.CLICK, onClickHandler);
		}
		
		protected function onClickHandler(evt:MouseEvent):void {
			if (!useSwitch) {
				return;
			}
			EventParser.dispatch(intro);
		}
	}
}